﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="BannerLeft.ascx.cs" Inherits="BannerLeft" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<div id="rightnow">
    <h3 class="reallynow">
        <asp:Label ID="lblTitle" runat="server" Text="Cập nhật banner"></asp:Label>
        <br />
    </h3>
    <table cellpadding="0" cellspacing="0" width="99%">
        <tr>
            <td class="lable" valign="top">
                Trang hiển thị:
            </td>
            <td>
                <asp:DropDownList ID="cmbViTri" runat="server" Width="100px">
                    <asp:ListItem Selected="True" Value="1">Trang chủ</asp:ListItem>
                    <asp:ListItem Value="2">Sản phẩm</asp:ListItem>
                    <asp:ListItem Value="3">Top Banner</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="lable" valign="top">
                Hình ảnh:
            </td>
            <td>
                <asp:FileUpload ID="fileUploadMedia" runat="server" />&nbsp;<asp:CheckBox ID="chkSelect"
                    runat="server" AutoPostBack="True" OnCheckedChanged="chkSelect_CheckedChanged"
                    Text="Chọn hình ảnh" />&nbsp;<asp:DropDownList ID="cmbImage" runat="server" AutoPostBack="True"
                        Visible="False" Width="150px" OnSelectedIndexChanged="cmbImage_SelectedIndexChanged">
                    </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="lable">
                Ghi đè tập tin:
            </td>
            <td>
                <asp:CheckBox ID="chkGhiDe" runat="server" />
            </td>
        </tr>
        <tr><td></td>
            <td align="left">
                <asp:Label ID="lblBanner" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="lable">
                Tiêu đề:
            </td>
            <td>
                <asp:TextBox ID="txtTieuDe" runat="server" Width="80%" CssClass="txtBox" Text="GBIT"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtTieuDe"
                    ErrorMessage="Nhập tiêu đề" SetFocusOnError="True">
                </asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="lable">
                Địa chỉ URL:
            </td>
            <td>
                <asp:TextBox ID="txtURL" runat="server" Width="80%" CssClass="txtBox">http://gbitdesign.com</asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="lable">
                Độ rộng:
            </td>
            <td>
                <asp:TextBox ID="txtWidth" runat="server" Width="50px" CssClass="txtBox">220</asp:TextBox>
                px
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtWidth"
                    ErrorMessage="*" SetFocusOnError="True">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="validWidth" runat="server" ControlToValidate="txtWidth"
                    ErrorMessage="Must be a number less than 171" SetFocusOnError="True" ValidationExpression="[0-9]*">Giá trị phải là số</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="lable">
                Độ cao:
            </td>
            <td>
                <asp:TextBox ID="txtHeight" runat="server" Width="50px" CssClass="txtBox">140</asp:TextBox>
                px
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtHeight"
                    ErrorMessage="*" SetFocusOnError="True">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="validHeight" runat="server" ControlToValidate="txtHeight"
                    ErrorMessage="Must be a number less than 501" SetFocusOnError="True" ValidationExpression="[0-9]*">Giá trị phải là số</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="lable">
                Target:
            </td>
            <td>
                <asp:DropDownList ID="cmdTarget" runat="server" Width="100px">
                    <asp:ListItem Text="_blank" Value="_blank"></asp:ListItem>
                    <asp:ListItem Text="_parent" Value="_parent"></asp:ListItem>
                    <asp:ListItem Text="_search" Value="_search"></asp:ListItem>
                    <asp:ListItem Text="_self" Value="_self" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="_top" Value="_top"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="lable">
                Hiển thị:
            </td>
            <td>                
                <asp:CheckBox ID="chkActive" runat="server" Checked="True" />
            </td>
        </tr>
        <tr>
            <td class="lable">
                Vị trí:
            </td>
            <td>
                <asp:TextBox ID="txtViTri" runat="server" Width="50px" CssClass="txtBox">0</asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtViTri"
                    ErrorMessage="*" SetFocusOnError="True">
                </asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtViTri"
                    ErrorMessage="Must be a number less than 501" SetFocusOnError="True" ValidationExpression="[0-9]*">Giá trị phải là số</asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="lable">
            </td>
            <td>
                <asp:Button ID="btnSave" runat="server" Text="Cập nhật thông tin" CssClass="command"
                    OnClick="btnSave_Click1" />
            </td>
        </tr>
        <tr>
            <td class="lable">
            </td>
            <td>
                <asp:Label ID="lblMessage" runat="server" Text="" Style="font-weight: bold"></asp:Label>
            </td>
        </tr>
    </table>
</div>
